package com.happy.ibidding.dao;

import com.happy.ibidding.bean.Ask;
import com.happy.ibidding.bean.Favour;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface FavorRepository extends MongoRepository<Favour, String> {


    Ask findByAskIdAndUserId(String askId, String userId);

    List<Favour> findByUserId(String userId);

}
